#include "yuvfilespec.h"


YUVFileSpec::YUVFileSpec(int width, int height, int fps, AVPixelFormat format, char *filePath):
   YUVSpec(width,height,fps,format)
{
    if(filePath) {

        int len = strlen(filePath);
        _filePath = new char[len+1]{};
        memcpy(_filePath,filePath,len);
    }

}

YUVFileSpec::~YUVFileSpec()
{

    if(_filePath) {

        delete [] _filePath;
        _filePath = nullptr;
    }
}

char *YUVFileSpec::getFilePath() const
{

    return _filePath;
}


